package Template;

public class TemplatePatternDemo {

    public static void main(String[] args) {
        Cricket cricket = new Cricket();
        // Cricket 子类重写 Game 类的 三个抽象方法. 继承了 Game父类的 play() 方法.

        cricket.play();
        System.out.println(" --- ");

        Game football = new Football();
        football.play();
    }
}
